package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 参与者实体
 * 表名 player
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Aug 22 15:16:26 CST 2018
 */
@Setter
@Getter
public class PlayerEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //标题
    private String title;
    //内容
    private String content;
    //得票数
    private Integer ticket;
    //IMG-图集
    private String imgs;
    //视频
    private String video;
    //参与活动的ID
    private Long campaignId;
    //发起人
    private Long userId;

    public PlayerEntity(){

    }

    /**
     * 构造参赛者
     * @param title
     * @param content
     * @param ticket
     * @param imgs
     * @param video
     * @param campaignId
     * @param userId
     */
    public PlayerEntity(String title, String content, Integer ticket, String imgs, String video, Long campaignId, Long userId) {
        this.title = title;
        this.content = content;
        this.ticket = ticket;
        this.imgs = imgs;
        this.video = video;
        this.campaignId = campaignId;
        this.userId = userId;
    }
}
